/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: HengCrudException
 * Author:   zhouheng
 * Date:     2018/6/24 23:18
 * Description: heng-crud项目异常类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.core.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 〈一句话功能简述〉<br> 
 * 〈heng-crud项目异常类〉
 *
 * @author zhouheng
 * @create 2018/6/24
 * @since 1.0.0
 */
@Setter
@Getter
public class HengCrudException  extends RuntimeException {
    public Integer code;
    public String mesaage;

    public HengCrudException(HengCrudExceptionEnum hengCrudExceptionEnum) {
        this.code = hengCrudExceptionEnum.getCode();
        this.mesaage = hengCrudExceptionEnum.getMessage();
    }
}